<html>
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
    <title>RegexUtils</title>
<link href="../../../../../../images/logo-icon.svg" rel="icon" type="image/svg"><script>var pathToRoot = "../../../";</script><script type="text/javascript" src="../../../scripts/sourceset_dependencies.js" async="async"></script><link href="../../../styles/style.css" rel="Stylesheet"><link href="../../../styles/logo-styles.css" rel="Stylesheet"><link href="../../../styles/jetbrains-mono.css" rel="Stylesheet"><link href="../../../styles/main.css" rel="Stylesheet"><script type="text/javascript" src="../../../scripts/clipboard.js" async="async"></script><script type="text/javascript" src="../../../scripts/navigation-loader.js" async="async"></script><script type="text/javascript" src="../../../scripts/platform-content-handler.js" async="async"></script><script type="text/javascript" src="../../../scripts/main.js" async="async"></script>  </head>
  <body>
    <div id="container">
      <div id="leftColumn"><a href="../../../index.html">
          <div id="logo"></div>
        </a>
        <div id="paneSearch"></div>
        <div id="sideMenu"></div>
      </div>
      <div id="main">
        <div id="leftToggler"><span class="icon-toggler"></span></div>
<script type="text/javascript" src="../../../scripts/main.js"></script>        <div class="main-content" id="content" pageIds="Engine::com.drake.engine.utils/RegexUtils///PointingToDeclaration//-1683276876">
          <div class="navigation-wrapper" id="navigation-wrapper">
            <div class="breadcrumbs"><a href="../../../index.html">Engine</a>/<a href="../index.html">com.drake.engine.utils</a>/<a href="index.html">RegexUtils</a></div>
            <div class="pull-right d-flex">
              <div id="searchBar"></div>
            </div>
          </div>
          <div class="cover ">
            <h1 class="cover"><span>Regex</span><wbr></wbr><span>Utils</span></h1>
            <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":engine:dokkaHtml/release"><div class="symbol monospace">object <a href="index.html">RegexUtils</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><pre>
author: Blankj
blog  : http://blankj.com
time  : 2016/08/02
desc  : utils about regex
</pre> *</div></div>
          </div>
          <div class="tabbedcontent">
            <div class="tabs-section" tabs-section="tabs-section"><button class="section-tab" data-active="" data-togglable="Functions">Functions</button></div>
            <div class="tabs-section-body">
              <h2 class="">Functions</h2>
              <div class="table" data-togglable="Functions"><a data-name="1943365294%2FFunctions%2F-1683276876" anchor-label="getMatches" id="1943365294%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="get-matches.html">getMatches</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1943365294%2FFunctions%2F-1683276876"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":engine:dokkaHtml/release"><div class="symbol monospace">fun <a href="get-matches.html">getMatches</a>(regex: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?, input: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html">CharSequence</a>?): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html">List</a>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>&gt;?<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="1943365294%2FFunctions%2F-1683276876" anchor-label="getMatches" id="1943365294%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a><div class="brief "><a data-name="1943365294%2FFunctions%2F-1683276876" anchor-label="getMatches" id="1943365294%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>Return the list of input matches the regex.</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="-672145342%2FFunctions%2F-1683276876" anchor-label="getReplaceAll" id="-672145342%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="get-replace-all.html">getReplaceAll</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-672145342%2FFunctions%2F-1683276876"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":engine:dokkaHtml/release"><div class="symbol monospace">fun <a href="get-replace-all.html">getReplaceAll</a>(input: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?, regex: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?, replacement: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="-672145342%2FFunctions%2F-1683276876" anchor-label="getReplaceAll" id="-672145342%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a><div class="brief "><a data-name="-672145342%2FFunctions%2F-1683276876" anchor-label="getReplaceAll" id="-672145342%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>Replace every subsequence of the input sequence that matches the pattern with the given replacement string.</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="1436926675%2FFunctions%2F-1683276876" anchor-label="getReplaceFirst" id="1436926675%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="get-replace-first.html">getReplaceFirst</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1436926675%2FFunctions%2F-1683276876"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":engine:dokkaHtml/release"><div class="symbol monospace">fun <a href="get-replace-first.html">getReplaceFirst</a>(input: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?, regex: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?, replacement: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="1436926675%2FFunctions%2F-1683276876" anchor-label="getReplaceFirst" id="1436926675%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a><div class="brief "><a data-name="1436926675%2FFunctions%2F-1683276876" anchor-label="getReplaceFirst" id="1436926675%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>Replace the first subsequence of the input sequence that matches the regex with the given replacement string.</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="-1508464741%2FFunctions%2F-1683276876" anchor-label="getSplits" id="-1508464741%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="get-splits.html">getSplits</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1508464741%2FFunctions%2F-1683276876"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":engine:dokkaHtml/release"><div class="symbol monospace">fun <a href="get-splits.html">getSplits</a>(input: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?, regex: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html">Array</a>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>&gt;?<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="-1508464741%2FFunctions%2F-1683276876" anchor-label="getSplits" id="-1508464741%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a><div class="brief "><a data-name="-1508464741%2FFunctions%2F-1683276876" anchor-label="getSplits" id="-1508464741%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>Splits input around matches of the regex.</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="1909338593%2FFunctions%2F-1683276876" anchor-label="isDate" id="1909338593%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="is-date.html">isDate</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1909338593%2FFunctions%2F-1683276876"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":engine:dokkaHtml/release"><div class="symbol monospace">fun <a href="is-date.html">isDate</a>(input: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html">CharSequence</a>?): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="1909338593%2FFunctions%2F-1683276876" anchor-label="isDate" id="1909338593%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a><div class="brief "><a data-name="1909338593%2FFunctions%2F-1683276876" anchor-label="isDate" id="1909338593%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>Return whether input matches regex of date which pattern is &quot;yyyy-MM-dd&quot;.</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="1722088505%2FFunctions%2F-1683276876" anchor-label="isEmail" id="1722088505%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="is-email.html">isEmail</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1722088505%2FFunctions%2F-1683276876"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":engine:dokkaHtml/release"><div class="symbol monospace">fun <a href="is-email.html">isEmail</a>(input: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html">CharSequence</a>?): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="1722088505%2FFunctions%2F-1683276876" anchor-label="isEmail" id="1722088505%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a><div class="brief "><a data-name="1722088505%2FFunctions%2F-1683276876" anchor-label="isEmail" id="1722088505%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>Return whether input matches regex of email.</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="-1733546336%2FFunctions%2F-1683276876" anchor-label="isIDCard15" id="-1733546336%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="is-i-d-card15.html">isIDCard15</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1733546336%2FFunctions%2F-1683276876"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":engine:dokkaHtml/release"><div class="symbol monospace">fun <a href="is-i-d-card15.html">isIDCard15</a>(input: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html">CharSequence</a>?): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="-1733546336%2FFunctions%2F-1683276876" anchor-label="isIDCard15" id="-1733546336%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a><div class="brief "><a data-name="-1733546336%2FFunctions%2F-1683276876" anchor-label="isIDCard15" id="-1733546336%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>Return whether input matches regex of id card number which length is 15.</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="-988620931%2FFunctions%2F-1683276876" anchor-label="isIDCard18" id="-988620931%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="is-i-d-card18.html">isIDCard18</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-988620931%2FFunctions%2F-1683276876"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":engine:dokkaHtml/release"><div class="symbol monospace">fun <a href="is-i-d-card18.html">isIDCard18</a>(input: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html">CharSequence</a>?): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="-988620931%2FFunctions%2F-1683276876" anchor-label="isIDCard18" id="-988620931%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a><div class="brief "><a data-name="-988620931%2FFunctions%2F-1683276876" anchor-label="isIDCard18" id="-988620931%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>Return whether input matches regex of id card number which length is 18.</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="-1442852760%2FFunctions%2F-1683276876" anchor-label="isIP" id="-1442852760%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="is-i-p.html">isIP</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1442852760%2FFunctions%2F-1683276876"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":engine:dokkaHtml/release"><div class="symbol monospace">fun <a href="is-i-p.html">isIP</a>(input: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html">CharSequence</a>?): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="-1442852760%2FFunctions%2F-1683276876" anchor-label="isIP" id="-1442852760%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a><div class="brief "><a data-name="-1442852760%2FFunctions%2F-1683276876" anchor-label="isIP" id="-1442852760%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>Return whether input matches regex of ip address.</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="-1997703942%2FFunctions%2F-1683276876" anchor-label="isMatch" id="-1997703942%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="is-match.html">isMatch</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1997703942%2FFunctions%2F-1683276876"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":engine:dokkaHtml/release"><div class="symbol monospace">fun <a href="is-match.html">isMatch</a>(regex: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>?, input: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html">CharSequence</a>?): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="-1997703942%2FFunctions%2F-1683276876" anchor-label="isMatch" id="-1997703942%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a><div class="brief "><a data-name="-1997703942%2FFunctions%2F-1683276876" anchor-label="isMatch" id="-1997703942%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>Return whether input matches the regex.</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="1848002488%2FFunctions%2F-1683276876" anchor-label="isMobileExact" id="1848002488%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="is-mobile-exact.html">isMobileExact</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1848002488%2FFunctions%2F-1683276876"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":engine:dokkaHtml/release"><div class="symbol monospace">fun <a href="is-mobile-exact.html">isMobileExact</a>(input: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html">CharSequence</a>?): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="1848002488%2FFunctions%2F-1683276876" anchor-label="isMobileExact" id="1848002488%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a><div class="brief "><a data-name="1848002488%2FFunctions%2F-1683276876" anchor-label="isMobileExact" id="1848002488%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>Return whether input matches regex of exact mobile.</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="832991579%2FFunctions%2F-1683276876" anchor-label="isMobileSimple" id="832991579%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="is-mobile-simple.html">isMobileSimple</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="832991579%2FFunctions%2F-1683276876"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":engine:dokkaHtml/release"><div class="symbol monospace">fun <a href="is-mobile-simple.html">isMobileSimple</a>(input: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html">CharSequence</a>?): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="832991579%2FFunctions%2F-1683276876" anchor-label="isMobileSimple" id="832991579%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a><div class="brief "><a data-name="832991579%2FFunctions%2F-1683276876" anchor-label="isMobileSimple" id="832991579%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>Return whether input matches regex of simple mobile.</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="-367012139%2FFunctions%2F-1683276876" anchor-label="isPassword" id="-367012139%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="is-password.html">isPassword</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-367012139%2FFunctions%2F-1683276876"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":engine:dokkaHtml/release"><div class="symbol monospace">fun <a href="is-password.html">isPassword</a>(value: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="-367012139%2FFunctions%2F-1683276876" anchor-label="isPassword" id="-367012139%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a><div class="brief "><a data-name="-367012139%2FFunctions%2F-1683276876" anchor-label="isPassword" id="-367012139%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>数字和字母的结合 ( 6 - 20 位)</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="-614083878%2FFunctions%2F-1683276876" anchor-label="isTel" id="-614083878%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="is-tel.html">isTel</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-614083878%2FFunctions%2F-1683276876"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":engine:dokkaHtml/release"><div class="symbol monospace">fun <a href="is-tel.html">isTel</a>(input: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html">CharSequence</a>?): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="-614083878%2FFunctions%2F-1683276876" anchor-label="isTel" id="-614083878%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a><div class="brief "><a data-name="-614083878%2FFunctions%2F-1683276876" anchor-label="isTel" id="-614083878%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>Return whether input matches regex of telephone number.</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="774760966%2FFunctions%2F-1683276876" anchor-label="isURL" id="774760966%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="is-u-r-l.html">isURL</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="774760966%2FFunctions%2F-1683276876"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":engine:dokkaHtml/release"><div class="symbol monospace">fun <a href="is-u-r-l.html">isURL</a>(input: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html">CharSequence</a>?): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="774760966%2FFunctions%2F-1683276876" anchor-label="isURL" id="774760966%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a><div class="brief "><a data-name="774760966%2FFunctions%2F-1683276876" anchor-label="isURL" id="774760966%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>Return whether input matches regex of url.</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="1249119033%2FFunctions%2F-1683276876" anchor-label="isUsername" id="1249119033%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="is-username.html">isUsername</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1249119033%2FFunctions%2F-1683276876"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":engine:dokkaHtml/release"><div class="symbol monospace">fun <a href="is-username.html">isUsername</a>(input: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html">CharSequence</a>?): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="1249119033%2FFunctions%2F-1683276876" anchor-label="isUsername" id="1249119033%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a><div class="brief "><a data-name="1249119033%2FFunctions%2F-1683276876" anchor-label="isUsername" id="1249119033%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>Return whether input matches regex of username.</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="-632184415%2FFunctions%2F-1683276876" anchor-label="isZh" id="-632184415%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="is-zh.html">isZh</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-632184415%2FFunctions%2F-1683276876"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":engine:dokkaHtml/release"><div class="symbol monospace">fun <a href="is-zh.html">isZh</a>(input: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html">CharSequence</a>?): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="-632184415%2FFunctions%2F-1683276876" anchor-label="isZh" id="-632184415%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a><div class="brief "><a data-name="-632184415%2FFunctions%2F-1683276876" anchor-label="isZh" id="-632184415%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>Return whether input matches regex of Chinese character.</div></div>
</div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="footer"><span class="go-to-top-icon"><a href="#content"></a></span><span>© 2021 Copyright</span><span class="pull-right"><span>Generated by </span><a href="https://github.com/Kotlin/dokka"><span>dokka</span><span class="padded-icon"></span></a></span></div>
      </div>
    </div>
  </body>
</html>

